package com.example.forhelp;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyBroadcastReceiver extends BroadcastReceiver {
    private static final String TAG = "MyBroadcastReceiver";
    @Override
    public void onReceive(Context context, Intent intent) {
        String info =intent.getStringExtra("data");
        Log.i(TAG, "自定义的广播接收者，接收到了求救广播事件！");
        Log.i(TAG, intent.getAction()+"  "+info);

    }
}
